package com.xiaoqi.springboot.controller;

import com.xiaooqi.springboot.bean.School;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author Rookie Coder
 * @Description
 * @Date
 **/
@Controller
public class ConditionalProperties {

    @Autowired
    private School school;

    @RequestMapping("/Condintinal")
    @ResponseBody
    public School getConditionalProperties(){
        return school;
    }



}
